package com.byq.ai.agentlab.controller;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.concurrent.Executor;

@Component
public class AIAgentWorker {


    @Autowired
    private Executor taskExecutor;

    @RabbitListener(queues = "taskQueue")
    public void processTask(String taskData) {
        taskExecutor.execute(() -> {

        });
    }
}
